Skip to content

fix: surface detailed GitHub auth errors#11248

Merged
captainsafia merged 3 commits into
masterfrom
oz-agent/github-auth-error-messages
May 20, 2026
Merged

fix: surface detailed GitHub auth errors#11248
captainsafia merged 3 commits into
masterfrom
oz-agent/github-auth-error-messages

Conversation

@captainsafia
Copy link
Copy Markdown
Contributor

@captainsafia captainsafia commented May 19, 2026

Description

Render the server-provided GitHub auth failure message in cloud-mode GitHub auth surfaces instead of always showing the generic “Missing GitHub authentication.” copy.

This lets the app show more specific failures such as a connected GitHub account missing access to repos defined by the selected environment.

Linked Issue

  • The linked issue is labeled ready-to-spec or ready-to-implement.
  • Where appropriate, screenshots or a short video of the implementation are included below (especially for user-visible or UI changes).

Slack thread: D0AU96L8CDV / 1779148608.734439

Testing

  • cargo test --manifest-path /workspace/warp/Cargo.toml -p warp github_auth_url_for_initial_run_includes_focus_cloud_mode_next
  • I have manually tested my changes locally with ./script/run

Screenshots / Videos

https://www.loom.com/share/cc5d44ebc4284911aa2d9f2a641ec86b

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

Conversation: https://staging.warp.dev/conversation/e3ac34bc-4985-48fc-bd92-970fd4be91aa
Run: https://oz.staging.warp.dev/runs/019e3d85-5d38-72b4-b0ed-18430632414f
This PR was generated with Oz.

Render the server-provided GitHub authentication error message in cloud-mode auth surfaces instead of always falling back to a generic missing-auth copy.

Co-Authored-By: Oz <oz-agent@warp.dev>
@cla-bot cla-bot Bot added the cla-signed label May 19, 2026
Constrain Cloud Mode GitHub auth and setup error messages so long server-provided copy stays within the pane/card layout without changing the displayed text.

Co-Authored-By: Oz <oz-agent@warp.dev>
@captainsafia captainsafia force-pushed the oz-agent/github-auth-error-messages branch from 8d471e5 to 4ad168a Compare May 19, 2026 04:05
Co-Authored-By: Oz <oz-agent@warp.dev>
@captainsafia captainsafia marked this pull request as ready for review May 19, 2026 16:36
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 19, 2026

@captainsafia

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR updates the Cloud Mode setup status bar to show the server-provided GitHub authentication failure message, while preserving the GitHub authentication link and adding wrapping support for longer messages. It also updates the existing auth URL unit test to assert the auth error message is available.

Concerns

No blocking correctness, security, or spec-alignment concerns were identified in the annotated diff. The PR includes visual evidence for the user-facing status-bar behavior.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@captainsafia captainsafia requested a review from a team May 19, 2026 22:13
@captainsafia captainsafia merged commit 8ca81cf into master May 20, 2026
43 checks passed
@captainsafia captainsafia deleted the oz-agent/github-auth-error-messages branch May 20, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants